package cn.boysoft;

import java.io.IOException;
import java.io.InputStream;
import java.util.InvalidPropertiesFormatException;
import java.util.Properties;


/**
 * @author 付厚俊
 * CreateTime 2013-4-26 下午9:41:59
 */
public final class Config {
	
	private Properties p = new Properties();
	private Config() throws InvalidPropertiesFormatException, IOException{
		InputStream in =Config.class.getResourceAsStream("config.xml");
		p.loadFromXML(in);
	}
	
	
	public  static void main(String[] args) throws InvalidPropertiesFormatException, IOException{
		Config config = new Config();
		System.out.print(config.p.get("mode"));
	}
}


